
CC ?= gcc
LD ?= ld 		
CFLAGS := -g -Wall -O0 

SOBJS := 1_ser.o func.o islog_on.o user_modify.o user_query.o admin_modify.o callback.o \
	admin_adduser.o admin_deluser.o admin_query.o	admin_history.o admin_delhistory.o \
	admin_quit.o
COBJS := 2_cli.o info_pri.o enter.o  

all:server client

server:$(SOBJS)
	$(CC) $^ -o $@ -lsqlite3
client:$(COBJS)
	$(CC) $^ -o $@

%.o:%.c
	$(CC) $(CFLAGS) -o $@ -c $< 

.PHONY:clean
clean:
	rm server client *.o 


